import request from "../utils/request.js";

export const userLoginService = (name,password) =>{
    const user = {
        name:name,
        password:password
    }
    let s = JSON.stringify(user);
    return  request.post('/login',s)

}

export const userRegisterService = (name,password) =>{
    const user = {
        name:name,
        password:password
    }
    let s = JSON.stringify(user);
    return  request.post('/register',s)

}